<nz-table #ajaxTable nzShowSizeChanger [nzFrontPagination]="false" [nzData]="dataSet" [nzLoading]="loading" [nzTotal]="total"
  [(nzPageIndex)]="pageIndex" [(nzPageSize)]="pageSize" (nzPageIndexChange)="searchData()" (nzPageSizeChange)="searchData(true)"
  [nzScroll]="{ x:'1300px',y: '600px' }">
  <thead>
    <tr>
      <th nzWidth="60px" nzLeft="0px">序号</th>
      <th nzWidth="100px">用户姓名</th>
      <th nzWidth="150px">手机号码</th>
      <th nzWidth="150px">开户行</th>
      <th nzWidth="150px">卡号</th>
      <th nzWidth="100px">账户余额(元)</th>
      <th nzWidth="100px">商户数量</th>
      <th nzWidth="100px">会员数量</th>
      <th nzWidth="150px">更新时间</th>
      <th nzWidth="120px" nzRight="0px">操作</th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let data of ajaxTable.data;index as i">
      <td nzLeft="0px">{{i+1}}</td>
      <td>{{data.name}}</td>
      <td>{{data.phone}}</td>
      <td>{{data.bank}}</td>
      <td>{{data.bankno}}</td>
      <td>{{data.balance}}</td>
      <td>{{data.mernum}}</td>
      <td>{{data.cusnum}}</td>
      <td>{{data.updateTime | date:"yyyy/MM/dd HH:mm"}}</td>
      <td nzRight="0px">
        <a (click)="cashapply(data._id)">申请提现</a>
      </td>
    </tr>
  </tbody>
</nz-table>

<nz-modal [(nzVisible)]="isVisible" nzTitle="申请提现" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWrapClassName="vertical-center-modal"
  [nzMaskClosable]="false" nzWidth="800">
  <div style="margin-bottom: 16px;">
    <nz-input-group nzAddOnBefore="账户类型">
      <nz-select style="width:100px;" [(ngModel)]="doc.type" (ngModelChange)="change()">
        <nz-option *ngFor="let item of typelist" [nzValue]="item.key" [nzLabel]="item.value"></nz-option>
      </nz-select>
      <label *ngIf="issmall && doc.type=='奖励账户'" style="color: red; padding-left: 10px;">【温馨提示：品牌宣传小天使暂不支持提现奖励账户，如需提现请升级为大使】</label>
    </nz-input-group>
    <nz-input-group nzAddOnBefore="账户余额">
      <input type="text" disabled="true" nz-input [(ngModel)]="doc.money">
    </nz-input-group>
    <nz-input-group nzAddOnBefore="提现金额">
      <input type="text" nz-input [(ngModel)]="cashmoney" [disabled]="issmall && doc.type=='奖励账户'">
    </nz-input-group>
    <nz-input-group nzAddOnBefore="开户行">
      <input type="text" disabled="true" nz-input [(ngModel)]="doc.bank">
    </nz-input-group>
    <nz-input-group nzAddOnBefore="银行卡号">
      <input type="text" disabled="true" nz-input [(ngModel)]="doc.bankno">
    </nz-input-group>
  </div>
</nz-modal>